Skip to content

fix(systemtags): only render inline list of tags if there are some#59424

Merged
susnux merged 2 commits intomasterfrom
fix/systemtags-inline
Apr 7, 2026
Merged

fix(systemtags): only render inline list of tags if there are some#59424
susnux merged 2 commits intomasterfrom
fix/systemtags-inline

Conversation

@susnux
Copy link
Copy Markdown
Contributor

@susnux susnux commented Apr 3, 2026

If there are no tags available, then we cannot render an <ul> element as this would result in invalid HTML / invalid accessibility state. Ref: https://www.w3.org/TR/wai-aria-1.2/#mustContain

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@susnux susnux added this to the Nextcloud 34 milestone Apr 3, 2026
@susnux susnux requested a review from a team as a code owner April 3, 2026 14:21
@susnux susnux requested review from nfebe and szaimen and removed request for a team April 3, 2026 14:21
@susnux susnux added the bug label Apr 3, 2026
@susnux susnux requested a review from sorbaugh April 3, 2026 14:21
@susnux susnux requested review from Antreesy and skjnldsv and removed request for sorbaugh April 3, 2026 14:22
@susnux
Copy link
Copy Markdown
Contributor Author

susnux commented Apr 3, 2026

/backport to stable33

@susnux
Copy link
Copy Markdown
Contributor Author

susnux commented Apr 3, 2026

/backport to stable32

Copy link
Copy Markdown
Contributor

@Antreesy Antreesy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise looks clean!

@susnux susnux force-pushed the fix/systemtags-inline branch 2 times, most recently from d4e6790 to 01c27e4 Compare April 3, 2026 15:03
@susnux
Copy link
Copy Markdown
Contributor Author

susnux commented Apr 3, 2026

(adjusted unit tests)

Copy link
Copy Markdown
Contributor

@szaimen szaimen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐘

- resolves #59332

If there are no tags available, then we cannot render an `<ul>` element
as this would result in invalid HTML / invalid accessibility state.
Ref: https://www.w3.org/TR/wai-aria-1.2/#mustContain

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux force-pushed the fix/systemtags-inline branch from 01c27e4 to a58a296 Compare April 7, 2026 12:45
@susnux
Copy link
Copy Markdown
Contributor Author

susnux commented Apr 7, 2026

/compile

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@susnux susnux merged commit 13583e8 into master Apr 7, 2026
134 of 140 checks passed
@susnux susnux deleted the fix/systemtags-inline branch April 7, 2026 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Accessibility: List without list items

6 participants